package org.huzhp.console.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @Description: 规则类
 * @Author: huzp
 * @CreateDate: 2020/3/12 15:18
 * @Version: 1.0
 */
@Data
@TableName(value = "base_sentinel_rule")
public class SentinelRule {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @TableField(value = "rule_resource")
    private String ruleResource;

    @TableField(value = "rule_resource_mode")
    private Integer ruleResourceMode;

    @TableField(value = "rule_grade")
    private Integer ruleGrade;

    @TableField(value = "rule_count")
    private Double ruleCount;

    @TableField(value = "rule_interval_sec")
    private Double ruleIntervalSec;

    @TableField(value = "rule_control_behavior")
    private Integer ruleControlBehavior;

    @TableField(value = "rule_burst")
    private Integer ruleBurst;

    @TableField(value = "rule_max_queueing_timeout_ms")
    private Integer ruleMaxQueueingTimeoutMs;

    @TableField(value = "create_time")
    private Date create_time;

}
